﻿namespace Medicalsystem.MCP.FormDesigner.Interface
{
    /// <summary>
    /// 对象的XML转换
    /// </summary>
    public interface IXMLConvertor
    {
        /// <summary>
        /// 转换为XML
        /// </summary>
        /// <returns></returns>
        string ToXML();

        /// <summary>
        /// 根据XML生成对象
        /// </summary>
        /// <param name="strXML">XML串</param>
        /// <returns></returns>
        void FromXML(string strXML);

        /// <summary>
        /// 根据XML生成对象
        /// </summary>
        /// <param name="xn"></param>
        /// <returns></returns>
        void FromXML(System.Xml.XmlNodeList xns);
    }
}